-- GENERATED SPELL FOR [Stonesplinter Bonesnapper] --


function spell0_1164(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1164', 590, 1)
end

function Sorts_1164(pUnit, Event)
local choix_sorts_1164 = math.random(0, 0)
if choix_sorts_1164 == 0 then
pUnit:RegisterEvent('spell0_1164', 1, 1)
end
end

function mob1164_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1164', math.random(1500, 3000), 1)
end

function mob1164_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1164_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1164_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1164, 1, 'mob1164_Action')
RegisterUnitEvent(1164, 2, 'mob1164_Leave')
RegisterUnitEvent(1164, 3, 'mob1164_Kill')
RegisterUnitEvent(1164, 4, 'mob1164_Die')
